/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Fenetre;

import Fenetre.BoutonListener.BouttonListenerMenuBarCreer;
import Fenetre.BoutonListener.BouttonListenerMenuBarQuitter;
import Fenetre.BoutonListener.BouttonListenerMenuBarRechercher;
import java.awt.FlowLayout;
import java.awt.HeadlessException;
import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JPanel;

/**
 *
 * @author gerard.dl02
 */
public class MenuBar extends JPanel{

    
    
    
    public MenuBar()  {
        
        JButton boutonCreer = new JButton("Créer");
        JButton boutonRechercher = new JButton("Rechercher");
        JButton boutonQuitter = new JButton("Quitter");
        
        this.add(boutonCreer);
        this.add(boutonRechercher);
        this.add(boutonQuitter);
        
        boutonCreer.addActionListener(new BouttonListenerMenuBarCreer());
        boutonRechercher.addActionListener(new BouttonListenerMenuBarRechercher());
        boutonQuitter.addActionListener(new BouttonListenerMenuBarQuitter());
        
    }

   
    
    
    
    
    
    
    
    
  
    
    
    
}
